﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Employee.aspx.cs" Inherits="WMS6.Web.Employee" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Employee</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newUom()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "Employee.aspx?from="+escape(from);
            return false;
        }
        
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }

        }
        
    </script>
    <style type="text/css">
        .style1
        {
            width: 181px;
        }
    </style>
</head>
<body>
    <form id="F2651" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblEmployee" runat="server" CssClass="label_header" 
                            Text="员工" meta:resourcekey="lblEmployee"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$ Resources:ButtonResource,btnGoBack %>"  
                            onclick="btnGoBack_Click" meta:resourcekey="btnGoBackResource1"  /></td>
                    <td><asp:Button ID="btnNew" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$ Resources:ButtonResource,btnNew %>"  AccessKey="n" 
                            OnClientClick="newUom();" meta:resourcekey="btnNewResource1" 
                            /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$ Resources:ButtonResource,btnSave %>" AccessKey="s" 
                            onclick="btnSave_Click" meta:resourcekey="btnSaveResource1" 
                             /></td>
                    <td><asp:Button ID="btnDelete" runat="server" CssClass="button" Enabled="False" 
                            Text="<%$ Resources:ButtonResource,btnDelete %>"  AccessKey="d" 
                            OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;" 
                            onclick="btnDelete_Click" meta:resourcekey="btnDeleteResource1"  /></td>
                    <td><asp:Button ID="btnCopy" runat="server" CssClass="button" Enabled="False" Text="<%$ Resources:ButtonResource,btnCopy %>" 
                            AccessKey="c" onclick="btnCopy_Click" meta:resourcekey="btnCopyResource1" 
                             /></td>
                </tr>
            </table>
        </div>
        
        <asp:UpdatePanel ID="up1" runat="server"><ContentTemplate>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="imgL1"></div>
            </div>
            <div class="tabLabelCont tabCur" id="div1">
                <asp:Label ID="one1" runat="server" class="hover" Text="基本信息" 
                    meta:resourcekey="one1"></asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="imgR1"></div>
            </div>
        </div>
        
        <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="540" style="display: block; margin-left: 10px; margin-top: 10px;">
                     <tr>
                         <td class="style1">
                             <asp:Label ID="lblEmployeeID" runat="server" CssClass="label" Text="员工工号" 
                                 meta:resourcekey="lblEmployeeID"></asp:Label><span class="must_input">*</span>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblEmployeeIDName" runat="server" CssClass="label" Text="员工姓名" 
                                 meta:resourcekey="lblEmployeeIDName"></asp:Label><span class="must_input">*</span>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblSex" runat="server" CssClass="label" Text="性别" 
                                 meta:resourcekey="lblSex"></asp:Label>
                         </td>
                     </tr>
                     <tr>
                         <td class="style1">
                             <asp:TextBox ID="txtEmployeeID" runat="server" CssClass="textbox" MaxLength="50" 
                                 meta:resourcekey="txtEmployeeID"></asp:TextBox>
                         </td>
                         <td width="180">
                             <asp:TextBox ID="txtEmployeeIDName" runat="server" CssClass="textbox" MaxLength="100" 
                                 meta:resourcekey="txtEmployeeIDName"></asp:TextBox>
                         </td>
                         <td width="180">
                             <asp:DropDownList ID="ddlSex" runat="server" CssClass="mediumselectbox"
                                 meta:resourcekey="ddlSex" >
                                     <asp:ListItem Value="M" meta:resourcekey="ListItemResource1">男</asp:ListItem>
                                     <asp:ListItem Value="F" meta:resourcekey="ListItemResource2">女</asp:ListItem>
                             </asp:DropDownList>
                         </td>
                     </tr>
                     <tr>
                         <td class="style1">
                             <asp:Label ID="lblPosition" runat="server" CssClass="label" Text="职位" 
                                 meta:resourcekey="lblPosition"></asp:Label>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblDepartmentID" runat="server" CssClass="label" Text="部门" 
                                 meta:resourcekey="lblDepartmentID"></asp:Label><span class="must_input">*</span>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblMobilePhone" runat="server" CssClass="label" Text="手机" 
                                 meta:resourcekey="lblMobilePhone"></asp:Label>
                         </td>
                     </tr>
                     <tr>
                         <td class="style1">
                             <asp:DropDownList ID="ddlPosition" runat="server" CssClass="mediumselectbox" 
                                 meta:resourcekey="ddlPosition">
                             </asp:DropDownList>
                         </td>
                         <td>
                             <asp:DropDownList ID="ddlDepartmentID" runat="server" CssClass="mediumselectbox"
                                 meta:resourcekey="ddlDepartmentID">
                             </asp:DropDownList>
                         </td>
                         <td>
                             <asp:TextBox ID="txtMobilePhone" runat="server" CssClass="textbox" MaxLength="30" 
                                 meta:resourcekey="txtMobilePhone"></asp:TextBox>
                         </td>
                     </tr>
                     
                     <tr>
                         <td class="style1">
                             <asp:Label ID="lblEntrantDate" runat="server" CssClass="label" Text="入职日期" 
                                 meta:resourcekey="lblEntrantDate"></asp:Label>
                         </td>
                         
                         <td width="180px" colspan="2" >
                             <asp:Label ID="Label1" runat="server" Text="备注"  CssClass="label"
                                 meta:resourcekey="lblRemark"></asp:Label>
                         </td>
                         
                     </tr>
                     <tr>
                         <td class="style1">
                            <asp:TextBox ID="txtEntrantDate" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtEntrantDate"></asp:TextBox><img  src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtEntrantDate)" />
                        </td>
                        <td width="180px"  colspan="2" rowspan="3">
                             <asp:TextBox ID="txtRemark" runat="server"  MaxLength="300" CssClass="largetextarea" TextMode="MultiLine"
                                 meta:resourcekey="txtRemark"></asp:TextBox>
                         </td>
                     </tr>
                     
                     <tr>
                         <td class="style1">
                             &nbsp;</td>
                     </tr>
                     
                     <tr style="height:10px;">
                         <td class="style1">
                             <asp:CheckBox ID="chkIsActive" runat="server" Checked="True" CssClass="checkbox" 
                                 meta:resourcekey="chkIsActive" Text="在职" />
                         </td>
                     </tr>
                     <tr>
                         <td class="style1">
                             &nbsp;</td>
                         <td></td>
                         <td></td>
                     </tr>
                 </table>
             </div>
         </div>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
        </Triggers>
        </asp:UpdatePanel>
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnDataFormat" runat="server" />
    <input type="hidden" id="hdncalendarFlag" runat="server" />
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenCalendarDiv();
		//-->
</script>
